package hpu.e4_demo.service;

import hpu.e4_demo.common.Result;
import hpu.e4_demo.entity.TUserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author FFF
 * @since 2025-06-21
 */
public interface ITUserInfoService extends IService<TUserInfo> {

    Result<List<TUserInfo>> getAllUserInfo(Integer currentPage, Integer size);

    Result<String> addUserInfo(TUserInfo tUserInfo);

    Result<String> modifyUserInfo(TUserInfo tUserInfo);

    Result<String> deleteUserInfo(String userName);

    Result<List<TUserInfo>> getById(String userName,String userTrueName,String userPhoneNumber);


    Result<String> updateUserPassword(String userName, String oldPassword, String newPassword);

    Result<String> setRegister(String userName, String role);
}
